﻿namespace BodaNetCommunications.Extensions
{
    public static class ObjectExtensions
    {
        public static bool ObjEquals(this object? obj, object? obj2)
        {
            if (obj == null && obj2 == null) return false;
            if (obj == null && obj2 != null) return true;
            if (obj != null && obj2 == null) return true;

            return obj!.Equals(obj2);
        }
    }
}
